﻿@model IEnumerable<WStest.Models.UserView>

@{
    ViewBag.Title = "Friends";
}

<h2>Friends</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Username)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.ActionLink("Remove Friend", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
